package com.corner.system.mapper;

import com.corner.system.domain.Device;
import com.corner.system.domain.Subsidy;
import com.corner.system.domain.SubsidyTemp;
import com.corner.system.domain.vo.SubsidyRequestVo;
import com.corner.system.domain.vo.transferQueryVo;
import com.corner.system.domain.vo.transferRepVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 红包补贴
 * 
 * @author corner
 */
public interface SubsidyMapper
{


    public List<Subsidy> selectByDeviceIdAndBelongMonth(SubsidyRequestVo requestVo);
    public Map<String,String> selectSubsidyStatusAndApprovalFlag(SubsidyTemp subsidyTemp);
    public Map querySuccessMoney(@Param("deviceId") String deviceId);
    public List<Subsidy> querySubsidyByDeviceId(@Param("deviceId") String deviceId, @Param("status") String status);
    public List<Subsidy> selectSubsidy(Subsidy subsidy);
    public int insertSubsidy(Subsidy subsidy);
    public int insertSubsidyBatch(@Param("subsidyList") List<Subsidy> subsidyList);//批量插入
    public int updateSubsidy(Subsidy subsidy);
    public int updateSubsidyByBatchOrDetailNo(Subsidy subsidy);
    public int updateSubsidyBatch(@Param("subsidyList") List<Subsidy> subsidyList);
    public String selectDatadesignValue(@Param("type") String type);
    public Map selectStatisticsDataByApprovalId(@Param("approvalId") Long approvalId);
    public List<Subsidy> selectSubsidyList(Subsidy subsidy);

    public List<transferRepVo> selectTransferDetails(transferQueryVo query);


}
